package com.example.decoratorpattern.decorator;

import com.example.decoratorpattern.service.Component;

/**
 * @author ash
 * @description
 * @create 2022/12/6  23:29:25
 * @className Clothes
 * @verson 1.0.0
 */
public abstract class Clothes implements Component {

    protected Component component;

    public Clothes(Component component) {
        this.component = component;
    }


    @Override
    public void operation() {
        System.out.println("父类输出!!");
        component.operation();
    }
}
